import 'package:json_annotation/json_annotation.dart';
part 'store_category_model.g.dart';

/// 列表模型数组
class StoreCategoryModelList {
  List<StoreCategoryModel> list;
  StoreCategoryModelList(this.list);
  factory StoreCategoryModelList.fromJson(List<dynamic> list) {
    return StoreCategoryModelList(
      list.map((item) => StoreCategoryModel.fromJson(item)).toList(),
    );
  }
}

@JsonSerializable()
class StoreCategoryModel {
  /// 分类id
  String? id;
  /// 分类名称
  String? n;
  /// 店铺图片
  String? l;
  /// 全部商品
  String? sfi;
  /// 分类图片
  String? i;
  /// 分类连接
  String? u;
  String? c;
  /// 最高价
  String? op;
  /// 最低价
  String? p;
  ///
  int? sortnum;
  /// 商品图片
  String? ti;
  /// 商品描述
  String? t;
  /// 商店id
  String? store_id;
  /// 售卖数量
  String? fi;
  ///
  int? st;
  ///
  int? s;
  /// 商品描述
  String? des;
  ///
  int? fp;
  ///
  int? stn;
  /// 加入购物车数量
  int? r;
  ///
  int? ep;
  ///
  String? tp;
  ///
  String? prime_exclusive;
  /// 商品描述
  List<dynamic>? ss;
  ///电话咨询
  String? mbi;
  /// 电话
  String? tel;
  /// 满包邮
  String? spp;
  /// 是否选中
  bool? is_select;

  StoreCategoryModel(this.id, this.n, this.i,this.u,this.c,this.p,this.op,this.t,this.s,this.des,this.ep,this.fi,this.fp,this.prime_exclusive
      ,this.r,this.sortnum,this.st,this.stn,this.store_id,this.ti,this.tp,this.l,this.sfi,this.ss,this.mbi,this.tel,this.spp,this.is_select);

  factory StoreCategoryModel.fromJson(Map<String, dynamic> json) => _$StoreCategoryModelFromJson(json);
  Map<String, dynamic> toJson() => _$StoreCategoryModelToJson(this);
}

